Updates js get request to ajax format.