Firefox pages JS should consider ESR builds up to date bug 828064

Refactor of pull request #585 to bring JS up to date (Bug 828064).

@pmclanahan @Osmose r?