Jen came to the rescue!

removed exess function in my main.js and now instagram works!  also
relinked cordova and phonegap js files in index.