updated simplex.js from escaton