rendering json back to the user
using wax.leaf.js for debugging purposes