added extend.js