js for manage