a little cleanup and reduce the trim calls
Merge pull request #261 from etsy/pet_jslint

a little cleanup and reduce the trim calls