reverted code, updated to latest datepicker, added back bs3 modifications