add functions.js file