changed /api/vote to regular post, instead of json