Cleans up badge view for pjax app.