Made cosmetic changes to validate .js file with JsHint