Move ajax vote to separate file