Reworked JS pipeline.