Fixed scrolling

Fixed scrolling issue by setting the height and width of the viewer
using JSAPI