結果 : how to destroy function in javascript