add a new post javascript core