Fixes Firefox compatibility issues
Merge branch 'master' into gh-pages