example code onSuccess function error

change navigator.contacts.length to contacts.length