javascript class constructor await