Cleaned up white space in between curly braces in JavaScript