Refactor Events and Votes controllers

Use respond_with in actions
Remove unused JavaScript files