fixed vote function to work on all browsers and update other matches with same user aswell