renamed files and added functions.js