Escape literal curly braces in a few regexps to improve portability

Unescaped curly braces intended literally are technically a SyntaxError in Ecmascript E5/E5.1 (although they do work in many if not most engines). This patch fixes a few regexps which prevented emscripten output from working in Duktape.