update js function to call..