this program is using JavaScript.