Updating Detector.js to use latest check

Supports SlimerJS and other environments. See here:
https://github.com/mrdoob/three.js/issues/3871