Working on badges in PhoneGap