syntax issues and undefined variable checking

There were some minor syntax issues and undefined variables caught up while using this in < IE8.  Primarily, a couple instances with last items in an object having a comma.  Also, wrapping the Init portion of bluebutton.js with a check to make sure the source is defined.