The badges work again. Moved the javascript down to the template footer.