How to connect to local graph database in javascript driver js2neo

//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 https://neo4j.com/docs/driver-manual/1.7/client-applications/#driver-driver-object . Can you use this instead