Create checkMobileAgent.js