replaced $.ajax GET with $.get
replaced some 'for' cycles with async