結果 : javascript set variable outside of function