js: split runningtest into prelude, libjs, proto, proc