fix(thewire): Restores functionality of JS max length limit parametrization

Is now async load friendly.

Fixes #6646
Merge pull request #6647 from Srokap/ticket_6646

fix(thewire): Restores functionality of JS max length limit parametrization