translates a few very basic functions and definitions of the original program into JS code