adds js script to main.html