Update

fix for firefox and safari.
Merge branch 'master' into gh-pages