Moving JS components to common directory