Integration nearly done apart from phantomjs example