JavaScript versions of Protex and Genex