Update thread.js

fix caculate method for pager.max
Merge pull request #38 from alanoy/master

页数计算方法有误