documenting the javascript for learning objectives