Fixed couple of JSHint warnings