Added json output to node script