Add documentation of utility JS functions