Small changes to factoriesExample.js