Fix analytics javascript