Fixes for JsHint only

Cosmetics update in the code.