setCOSJSTargetFunction not working with new api
  old API allowed me to call JS functions using : setCOSJSTargetFunction

Example: using NSButton
        closeButton.setCOSJSTargetFunction(showPanel)
        closeButton.setAction("callAction:")

showPanel is my custom function that does not fire anymore?