added public/js/main.js file