結果 : declare javascript function as a variable