Added commenting to the JS file.