AJAX tabs assignment

Looks good but you might want to try the `$(function() {` shortcut