Fixed JsHint errors