Clean js policy

Removed all the scripts and shit from the index file to main.js