Create Pager.js

Fix tha pager defect when its direction is RTL