Posts index starting to port over to json and jQuery