Fix #2272,#2232,#2336 (exporter): minor enhancements

work in some browsers

Also minor fix to warning from jshint in e2e tests
Merge pull request #2347 from PaulL1/exporter_fixes_2272

Fix #2272,#2232,#2336 (exporter): minor enhancements