Fixes shuffling extension methods part of st and js exports.
Merge pull request #828 from herby/extensions-ordered

Fixes shuffling extension methods part of st and js exports.