You have to keep in mind that search engines are not going to execute any javascript code in your page.
As suggested google has started to execute javascript code in order to get facebook, twitter and discus comments in pages.
So since google's javascript code execution is limited and google is not the only search engine out there you should consider other options.
You could look around for google's (and other crawlers) ip address and when a request is coming from that ip, serve it a static snapshot of your page or a dynamic but not ajax version of your site.
Phantomjs is a headless browser. You can use it to create static snapshots of your pages.