Secure permissions for index.html
Compile js source to dist folder.
Fix javascript errors while loading pages.