Update js reference and ajax
Add loading of posts