Fixed JsHint issues