Update extension.js

added some formatting