Make algorithm.js pass jslint