moved analytics script to the end of the document