Put closures back and define $ as jQuery.