setting the RTC functions to the window for phantomjs