結果 : return a function inside a function javascript