This is JS library. "browser-os-hack.js" can judge android, iPad, iPhone, PC, firefox.