changes during testing
Moved getData function out of panels.js as this is now a module and non module files cannot call it.
Fixed some issues with globals
Fixed issue with slash character in surey name causing export to fail