javascript class for cgi forms