added some ancient javascript code for posterity