Create algorithm.js