Update index.js

add onerror => console.log for PhoneGap debugging, http://community.phonegap.com/nitobi/topics/debug_phonegap_errors_dont_show_up