Kwixer: Some updates:

- `String.prototype.trim` is only on IE 9.
- `.replace` is not replacing every instance of ";". Added `//g` modifier.