finally fixed the second ajax call. It was an event delegation isssue coupled with the fact that we were appending the head to the page. We needed to render the tweet index with layout false