removed weird, unnecessary syncronous "ajax" call