completes classes using functions as constructors
completes literal notation, singleton objects