結果 : run a function only once in javascript