If you are encountering odd errors being thrown by Safari 6 on both iOS and OS X when compiling Handlebars templates, this is how I worked around it.
This comes up a lot on IRC channels and around the web: confusion about the difference between
currentTarget on a DOM event object.
I recently wrote a small script for caching results of jQuery calls, which I've titled jQuery DOM Cache. It works just like jQuery proper in that you pass it a selector and it returns a collection of matching DOM elements. The difference is that it stores the result of each selector you pass it for recall later.