reshuffle javascript for bali to work with asset pipeline