using phantomJS for logging