- improves js structure