Add element referrer and id as span atributes for wtosm.js