How To Throw New Exception In Javascript