Now listens for both touch and click events.
No longer requires isTouchdevice variable.