Updated basis.js