used js for uppdate bok and for get category

I can't write js for insert new book (it working with php file now). And
I can't place delivery data to DB. It is 0000-00-00 now.