add mocha-phantomjs tests, add JSON.decycle, .travisci