got tables into javascript