modify chvec.js but disarray in chrome. need to be fiexed.