wrapped ajax call in function called onload