Made some code pass the JSHint test.