hooked mainjs up to datepicker inputs