fixing firefox compatibility issues
Merge branch 'master' into gh-pages