use JsFunction for constructors