class Browser

def phantom_js?

Detect if browser is PhantomJS
def phantom_js?
  !!(ua =~ /PhantomJS/)
end