relational algebra for javascript