clear javascript code