Users can delete links on edit page

I use javascript (written in coffeescript) to delete a link via the edit page