give a good error message when a pure virtual function is not implemented in JavaScript