bootstrap-datepicker autoclose wasn't working, so manually closing them instead