Fix typo in JS

A listener was called `dectivate` which caused some issues when copying and pasting :)
Removed trailing newline Github added
Merge pull request #1 from pbowyer/patch-1

Fix typo in JS