Improve delete

Added javascript to achieve the same behaviour that occurs in Ruby on Rails when a user tries to delete something. Now a confirm box "Are you sure?" appears.