added performance reporting (to console)
moved intensive calculations to an asm.js module

this should boost performance in firefox.