ajax working for total reputation