Create generic-functions.js