fix(js): Fix JSHint errors/warnings