a little adjust of basic.js