simplify cut.js