結果 : define function in variable javascript