Update periodicalpays.js: fixed bugs.