fix bug in class.js and add setOptions