Factory for rapidly creating abstract JavaScript models.