Working on notifications in PhoneGap