Alternative to JavaScript's `new`.