Adding json form js