Getting marty working with window object