Reworked Export Code. Changed to OpenLayers to v2.13.1.