Automatically require js-factories when possible

Update documentation to match