Update extension.js

Okay, this is the last change and everything should now work... hopefully. I'll test it on my own room first if you want.