Fixed the flicker bug. Started to get rid of the jQuery dependence, as well as added regex stuff.