Users can delete links on edit page

I use javascript (written in coffeescript) to delete a link via the edit page
I had this functionality (see this PRs commit history), but I think the UI kind of sucks. And I want to mess with coffeescript a little.