Implemented delete functionality using jQuery.

I decided to use jQuery for this, so I'll eventually move everything to that, but it worked quite well.