Hopefully fix things so that they'll work on the iPad.

Basically, for iPads the event is "touchstart", not "click".
So I wrote a tiny .js that sets the 'click' variable to either
one depending upon user agent. Use this instead of the string "click"
when specifying an event.
Fix the new note bug that I was seeing.