Fixed will_paginate problem with ajax