Add documentation to the util js file