Applying JSLint suggestions.