Add 'window.' to optional global objects.
Add 'window.' to optional global objects.

This is to prevent 'undefined' errors.

iairnino/architect,Rowno/architect,shelsonjava/architect,shelsonjava/architect,iairnino/architect