5e sheet bugfix and cross browser support update

Fixes cross browser tab issue and various order of operations issues causing incorrect calculations