Return Results from custom javascript pipe

Is there any documentation or detail available on returning a response from the custom javascript pipe? It looks normal in the test window, but once I call it from the action button I’m getting an empty response.