Add json output to formcontrols.js