create  object and exposes it to global object