Added functions.js