changed the posts page and added some JS