Make sure our code is in the head instead of at the bottom of the page