clear method
js class modified