Bind JsIf constructor call to correct constructor