working on data sepration with ajax
previous problems seems to come froom local variables from IIFE