generate table of contents automatically by jquery-2.1.0.js