Fixed bug with require/define() missing on window