JavaScript: manual fallback.
Travis: install php5-json too