added notes on js file