js separated
moved onLoad function
Updated index.html with main.js