added phantomjs and window resize