Fixed a few issues in the JS code for collections
Made the parsing of the prototype HTML compatible with jQuery 1.9+

Passing an arbitrary HTML string to $() has been deprecated in jQuery 1.8
and removed in jQuery 1.9 which only parses it as HTML if the first
character is a <. This fixes the parsing of the prototype when the
template leaves leading spaces (or other chars but this is less common)
when rendering the prototype.
It bumps the jQuery requirement to 1.8+
Merge pull request #3 from stof/js_improvements

Js improvements