Updated respond.js
Minor syntax fix
Viewer refactor