added doctype and cleaned up example code a little
added large table example for demoing beforetablesort
return early from function; move beforetablesort higher up
run sorting asynchronously - fixes beforetablesort