added correct JavaScript objects to the Badge Plugin

added correct JavaScript objects to the Badge Plugin