handling and observing elements in export.js