Updated documentation in js file