Quick solution for upvote javascript bug