It's moved the general function to generalFunction.js file.