Beginning the Javascript

Laid out the structure of how the file will look and began to write some
functions.