Ok, so apparently the script I used is a little too sophisticated for mobile. XD
I went ahead and uploaded a mobile version with a different script. It has a similar behavior, the titles are now working, but they will take you to the top of the page instead of keeping at the scroll position you were.
I'll keep investigating, though. Thanks again for the heads-up!