Strip out non relevant classes to get values (messy, but should work).
Changed "wpajax-page-" to "wpajax-pagename-"