Copied ol.js from http://ahocevar.github.io/tuwien-geoweb/examples/