I wanted to share this point with all and those that may run into this problem with datepicker at some point.
I got the "inst is undefined" in firebug with one of my datepickers today.
As it turned out, it was the result of using a selector for the datepicker whose id was not unique. It was duplicated in the input tags of two different forms.
I hope this helps someone from wasting time and pulling out their hair in frustration.