Update script.js

$imageName now store img src link.