javascript cypher utils