demo of JavaScript