why you don't try to use a JSON or CSV file, as you can import those files easily inside your project and at the same time you can still update them outside AE
No, it's a completely differnt approach, where your data document doesn't have to be executable JavaScript as it does with the method you're using. You import your data file directly into the AE project panel (and even add it as a layer to the timeline, where you can pickwhip to the individual data elements). You should read the AE help section on "Work with Data-driven animation".