second time up or down will cancel the previous operation
move embedded up/down js to a single file