Simple JavaScript classes (mostly to make sure I understand prototypes!).