fixed a silly bug

window.ajax was set to one instance of ajax
changed it to a getter