Fix for #7 - Add compatibility for Firefox and IE >= 8