Correct undefined variables discovered with JSHint