update example code to last basis.js