Fixed JS error for google analytics