fixed analytics javascript