trying to get script to work on mobile