javascript test if json property exists