table_working

major update: fixed some things, changed some things, made function for
table. Javascript-only, I have to style it now.