Update extend2.js