nitpick: `
$("#activateExtension").show();
$("#deactivateExtension").hide();
`
and the inverse is duplicated code, and can be refactored into two separate methods.