Must dynamically set row end

Set end of row with JavaScript since we need to do this
every time a filter is passed