Fighting node callbacks with purescript