Fix minor issue with ajax dataType