getInstance seems to be very Java and not how a singleton is usually created in Javascript.