use asap.js and ps.js from http://kworam.github.io/ProcScript