prevent init being used multiple times

Also moved fixes for old browsers into pages.js selector