transfer put_with_process and put_without_process to maze.js.