generate tracking requests with script tag insertion if CORS is not supported
fix library object initialization and version information
add page url, useragent and referrer to all events