update image src when changing image
fix warnings from jshint
dist