Fixed a couple JSHint warnings