Update analytics JavaScript