Repeated table contents now generated by javascript function.