A simple and elegent javascript model class.