added some javascript bindings to Mongrel 2