That's pretty cool!
Wrote a file to test.js with the following:
console.log(navigator)
document.querySelector("#pastebtn").innerText = "PASTE"
And then run it with `:!test.js` and it executes it in the current browser context. Editor editing itself :)