added correct JavaScript objects to the Badge Plugin