Added JavaScript to improve the html