Update factory.js

Step param was not used.