Pattern matching for Javascript data structures (objects / lists / primitives) in a DSLy fashion

HTML

<script src="https://github.com/documentcloud/underscore/raw/master/underscore-min.js"></script>
<div id='log'/>

JavaScript

//make console.log print to the html panel


var x = "hello";

console.log(x()); // john