add a detect.js which can detect the useragent