working with functions.js