fixing firefox and ie, logging browser and referrer