Revert to older PhantomJS tests and optimize json3