Fix for jQuery 1.9 by trimming template whitespace

Starting in jQuery 1.9 to build a new DOM element with $(str) str needs to
immediately start with a "<", rather than something like "      <".
Merge pull request #172 from elasticsales/master

Fix for jQuery 1.9 by trimming template whitespace