update javascript for communication api
minor update
update js for testing