Attach entities to window object