Modify index.html and js/main.js to make replacement work; add textchange and cssHooks code to plugins.js