Update checkMobileAgent.js