procedure.js -> Procedure.ob + bug fixes