json form javascript check