Pattern Matching Interpreter for JavaScript