htmlparser.js: replace trimLeft w/ something that works in all browsers (#173)