Better escaping of literal curly brackets.

Tests showed literal brackets were a pain to work with because of the way js handles backslashes in strings. I opted for a trailing bang to handle the inconvenience.