[fixed] Bug that tried to 'toLowerCase' a function when checking if user is on mobile