java script file linked to main.html