updated index.html and regex.js. Removed all functionality relating to processing input by line in favour of using the "m" modifier which achieves the same result in far fewer lines of code.
updated regex.js. Fixed some bugs relating to adding/removing classes - was using element.addClass()/element.removeClass() instead of element.classList.add()/element.classList.remove(). Also fixed some typos (random characters in random places) causing syntax errors that were caused by the stupid trackpad on potteroo.