Can I reference a Node JS function from JS within a