Documented some of javascripts.