Ajaxify voting in index and view

Voting mechanism ins now via ajax.