restoring isMobile js variable