move phantomjs check for touch into Leaflet

to allow standalone mocha-phantomjs usage on the browser reporter