Are you sure it's getting to call the "awardBadge" function? try printing "test" before calling the function to check if it gets there.