cleanup and repositioning with node.js server