Once we start creating rich, responsive sites using JavaScript, it’s natural to want to keep as much of the functionality in the…