An extendable Javascript "class".