wrapped in closure and allowed appendage to window object