added node.js ajax call and func