Fix some things found by JSHint