[PhoneGap] add alert