Vertically centered h1 with JavaScript