Check out Data::Jsvascript and Data::Javascript::LiteObject, which appear to be a way to have the CGI script dump the data in a way that Javascript
can manipulate it. That'd be the first step in writing the Javascript to perform
some lightweight client-side manipulations.