Moved createmarkers into xhr callback so data is processed AFTER it is received