basis.js solution