workaround for phantomjs missing js/Window