Fixing bugs in Javascript due to change in OpenLayers API and fixing OL version in the header to stop future problems