Create factor.js