replace the use of mochijson by jsx and optionnly jiffy.

This change is needed to be able to use erlang_js in refuge and rcouch
which use the ejson format.