Placed generic code for fixing console into separate file and executing it.

Previously in (unused?) bioheatmap.js.