Make the main js function run when the page loads