add index for history record
 bug#2: ajax cross domain.

 xhr.status = 0; responseText = null;
 move back to see the problem
 bugFix: ajax should finished before another page load.