added documentation for js sources