refactor vote json output to use partials