* adding sleep() calls when using phantomjs