Javascript Try Without Catch In Java