WebKit supports trim() since a very long time.

If we want IE8 to support it we can add this somewhere:

```js
if (!String.prototype.trim) {
  String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, '');
  };
}
```