Fixed referrer logging on HTTP errors
Added URI field to JS errors