Update Viewer.js

add back in accidentally deleted functionality