Create common-functions.js