nirmal's changes to js file and projectservice impl