Write a JavaScript program to solve the following problem: Acompany pays its salespeople on a commission basis. The salespeoplereceive $200 per week plus 9% of their gross sales for that week.For example a salesperson who grosses $5000 in sales in a weekreceives $200 plus 9% of $5000 or a total of $650. Your programshould obtain the gross sales for each employee through an XHTMLform and determines how many of the salespeople earned salaries ineach of the following ranges (assume that each salespersons salaryis truncated to an integer amount):