Adds variables to JavaScript

This adds the initial variables to the JavaScript file.