Simple table model for JavaScript