Modified js to export JOSN string, controller back to business as normal