sets up servering json post from node server