add the date formatter for js, replace timestamp type to date type in
database, refactored post query from js, add test for maven