update javascript code for demo case
remove npm log