Setting runtime reference also to window-object