analytics added. scripts moved to bottom.