move js reference to head to fix flash of unstyled content