結果 : return function inside function javascript