Tests: allow running a separate server during testing
Use `event.pageX` instead of `event.clientX` since iOS doesn't set clientX

Fixes gh-1