cleaned up window.myRequire implimentation