Create factories.js