Added extend.js