Cleaned up source to make JSHint happy.