Show/Hide elements based on badge ownership

@amandam I tried your code on clean setup and it fails with the same errors. Given the fact that it runs on your side, there must be an issue in my environment. So I wrote a ticket.