WL-3501 Fix ajax request and remove calls to jQuery