added notes to html and js file