Added spaces around curly braces. Simplified var declaration.