Create commonFunctions.js