Create main.js

Added JavaScript file. Adds JS to allow the player to make cookies.