Minor, but the lines above can be written as follows:
```js
var transform = ol.proj.getTransform('EPSG:4326', 'EPSG:900913');
```