Updated pagination.js code so that ajax are using the correct address