Adding prev/next functionality in debugger.js for end-to-end pipeline