Refactored javascript assets structure