A simple recursive regular expression matcher written in JavaScript.