JavaScript : try..catch..throw Example