fix prototype js to update badge. closes #32