move the position of mobilecheck() function\nProblem solved when executed on IE, never called the function because of the position