結果 : how to error handling in javascript