rename file functions.js to main.js