Fixes jslint errors in ImageViewer