Fixing some issues suggested by JSHint