Cleaned up suggestions from JSHint.