Added trim shim function. Closes #45
Now using .charAt instead of using strings as arrays. #45
Removed trim shim, and replaced it with regex trim
Merge pull request #46 from wnr/master

Fix IE8 errors. Closes #45