fixed a dom.js bug and added insight npm module to node-local.js