Create main.js

Add JavaScript for button. Cookies can now be created.