Implement WinForms RegisterJsObject