Continued Development, Added javascript to load Viewport and bugfixes