adding comments to the js files for better understanding for future coders (including me)