Created functions.js