Fix typo in JS

A listener was called `dectivate` which caused some issues when copying and pasting :)