I don't really agree with your characterization of JavaScript not having inheritance or polymorphism.