used the 'in' operator for property detection on objects; used the normalized event listener adding/removing functions for addition/removal of touch event listeners so that Trident 4.0- does not throw property-not-suppored exception; changed the order of properties for property detection for keyboard events; other minor fixes and clean-ups;