Switch to module system unreliant on window object, thereby increasing portability