documentation about the ui/window.js module
updated for saner variable names, now exporting module for external usage