Fix out of scope variables in ol.Map

Gotta keep Crockford happy :)