Set table size with JS