move basis.js to lib folder