Updated extension.js