Applying patch for JS calls instead of PHP

Replaces PHP CJAX calls to change tabs with jQuery load calls, which
fixes the issue of javascript not loading on new tabs when called.