move utility to util.js, refactor moveUp/moveDown