fix js for clear