Update postCRUD.js

add update feature