put iOS detection into detect.js