Add comments in JavaScript

Prior to this commit, there were no comments in the application.js file.
Now, comments have been added to make the content easier to understand
for people who want to work on the project