use phantomjs in base.rb