Datepicker component now checks if locale JS exists