How To Handle Exception In Javascript0