Checks for existence of console before trying to write to it.

Some browsers (IE8) can have console undefined, preventing the export job from being executed.
Placed generic code for fixing console into separate file and executing it.

Previously in (unused?) bioheatmap.js.
Merge pull request #49 from thehyve/issues/UAT-212_export-function-does-not-work

Possible fix for export not working on IE