JavaScript/jQuery AJAX tab system using OO class design pattern