reorganizes javascript assets