refact the isMobile to be possible to do unit test
minify using closure_compiler