removing an useless semicollon at the private object and adding the caching to the window obj