Modified /def for bootstrap, changed javascript loading for all pages

Errors included for datepicker. Working on it.