//connection with the installed js2neo-library
var cx = js2neo.open({ host: "bolt://localhost", user: "neo4j", password: "1234567890!" })
//Test run
cx.run("MATCH (n) RETURN *", { onRecord: console.log })
Neo4j provides a Neo4j Bolt Javascript driver and as described at Client applications - Neo4j Driver Manual . Can you use this instead