Adds shims for tests on phantom.js