attach Bugle to window from within the module