HTML Dynamic Badge Application