Expose code in window and add module root file.