updating basic.js