Clean up RelativeDates code

Aeosynth approved (TM) (C)
Move page visibility polyfill to Main
Remove unnecessary ?
Replace $.hidden() fn with d.hidden