Fixed obvious JSHint warnings