Create general-functions.js