結果 : how to catch errors in javascript