A simple utility for creating sub-classed errors in Javacript