test to prevent the use of eval function by parsing and splitting the ajax response into an array