Fix JSHint errors