[fix bug 1048307] Add JS tests for mozilla-pager.js