add js file and crud fuctions.
update js, fix syntax bugs.