Numerous bug fixes

The following changes and improvements have now been made:

- Added support for jQuery 1.9.0 (including 2.0 beta).
- Updated sniffing technique to prevent Google Chrome reporting support for touch events incorrectly.
- Syntax fixes and general cleaning.