Create mainFunctions.js