Added jshint options, added in any missing semicolons, changed line breaks, but DID NOT change code logic anywhere or fix bugs