Update extension.js

fix