added requirements to viewer.js