結果 : javascript execute function only one time