index: move Google Analytics to bottom and optimize JS