update posts and js