A simple utility for creating sub-classed errors in Javascript