Fixing js curly bracket parsing issue.