A simple JavaScript library for creating factories.