cleaned up some js and image_update.php
Merge pull request #1 from conradmuan/master

cleaned up some js and image_update.php