Javascript Constant Function Graph Algebra