Populated the main.js file with standard functions