A reconstruction of lab8 for cs3157 using node.js