Using proper remove DOM method. Fixing paths to scripts in examples to be relative