結果 : set function to variable javascript