Obtain underscore and main module from window