Added JavaScript exception classes