JsHint code fixes