Refactored $.ajax() to $.get()