fix for #433

don't change the value of outer variable eventType
normalize touchend's touches (Firefox OS issue)
fix build

because of previous commit
Merge pull request #1 from lloiser/bugEventType

Bug event type