Fix IE8 compatability by replacing native trim() call with jquery equivalent
Merge pull request #64 from mlawrie/master

Trivial bugfix for IE8