started functions.js