define .trim() for IE8
Merge pull request #3 from danieljonce/master

Thanks!