update imgViewer.js