Client Javascript library to transform baked badges on a page into rich widgets