js for remove function