Fixed JSHint warnings