Fixed simple JSHint warnings

These three changes take the number of warnings in the codebase from about 80 to 20.