have you inspected where it goes on error ? My bet would be on the calendar
setup ... seems that you're trying to bind a click on an element to trigger
the "parent" to show the calendar. But the calendar is supposedly yet
present on the input field. If so, why don't you just use live ?
e.g.
jQuery('.icon-calendar').on('click', function()
{$(this).parent().prev().trigger("onclick");})
PS: you are not using bootstrap features embedded in bootstrap.js, just
some classes to add icon classes around.
--