javascript check if json property exists