Classical inheritance for JavaScript, inspired by Leaflet.