Adding new nonlocal method for returning JSON from HTML. New Casper params.