table styling, js optimization