Seems that the Jade syntax highlighter gets thrown off when it encounters an opening brace followed by a quote (single or double) in a JavaScript block.
Observe:
Note that I can fool it by putting a closing brace inside a block comment:
Any ideas? Does the developer of the Jade syntax highlighter hang out in these forums?