Add js files. Implement dynamic script loading with duplicate detection