結果 : throwing errors in javascript