table generate js