Corrected CSS mistake
Wrapped page switcher functions into doc ready

was going to namespace it, then realized I could just put the whole
thing in doc ready