bug on function isMobile, is not a function is a variable. Doesn't work on google closure in advanced mode