Fixed issue of incorrect browser resizing and javascript stuff. Closes #36