Adding story logging for phantomjs and debug_mod