pas2js < program.pas > program.js
program.js will be ill-formatted, so if you're planning on
editing it, you'll want to run it through a pretty-printer, such as google's
pas2js < program.pas | closure --formatting PRETTY_PRINT > program.js
equivalents of various pascal functions.
First note that this code is a) outdated and b) written for a different dialect of pascal than you're using, written by a programmer who doesn't have your habits. Don't assume that it will do anything but barf when you feed it your own code. Listed below are some known and important bugs.
Types aren't handled quite correctly. (Specifically, they are mostly ignored.)
GOTOstatements will not work. (It is not completely infeasible to support these in the future, but doing so may result in a serious performance penalty.)
pascal.jslibrary is far from complete.