fix js for stacked inline