fixing bug whentrying to track js adverts incorrectly