Moved change theme out of onload function

Moved this out of the window.onload function as the theme change needs
to run during load rather than 'on' in order to prevent page flickering
on reload