Major changes here. I moved all of the files from the SharePoint site into
the repo. There were a ton of errors from jshint. I fixed all of them (in
the code) but need to test to ensure that the code still works. Hopefully
it does...jshint didn't like anonymous functions in for loops so I needed
to move them to the global scope. This likely broke some of the scoping of
the variables. I will fix each error as it turns up.

I will make a backup of all current files in case there are unfixable
errors in the new code.