add notes on javascript file