copy js components too