Fix js error when switching away from /ideas to /idea/:id and trying to vote