Reverse js order for row to be first hidden then initiated