separating HTML and JS in different files.
rough export functionality