結果 : how to access object inside function javascript