cleaned up some js and image_update.php

destroyed some js :)