Prince.addScriptFunc("myfunc", function() { return "message box"; });