Fix JSHint errors & style