use window.callPhantom api