Dynamically set image src using JavaScript