Using HTML 5 date picker and using jquery datepicker when HTML 5 is not available. Refactored the js and included them in bundles.