fixed javascript for google analytics