graph-based function composition tools for javascript