Configurable Error objects for JavaScript