fixing created date on categories. Plus javascript for edit and delete modals to work correctly