changed table to .table in js