Javascript-ian variable names
Added global table reference to cutdown on costly DOM lookups