integrated new createFactories.js code
integrated new createFactories.js code

footworkjs/footwork,jonbnewman/footwork,footworkjs/footwork,reflectiveSingleton/footwork,jonbnewman/footwork,reflectiveSingleton/footwork