Setting up vote controller to use js response