adding modified controller and new server script for node js