First version of exporter.js that might work