Native to js function call patch