結果 : javascript function not returning value