Modified to remove trailing commas in module dependency arrays to ensure JSON.parse() success.