added documentation to top of js file