added date to posts, fixed adding post and added js file