split the testdata.js file into script and data body