adds dom event generator, all urls will now get changed to //host/uri