finished table javascript