// Initialization function init() { console.log("Init..."); } // Run script after page is loaded $(function() { init(); });