refactoring interest.html.erb and event.js to use unobtrusive javascript