Wrapped in function, changed output
Added support for initialization without new keyword and node js