Adding functions.js file