create reference to savage object and add node.js compatibility