Removed references to jQuery from algorithm.  Added demo and test .js and .html files.