Minor corrections to algorithm

Minor changes made to the algorithm and the testAlgorithm.html - there
was a typo (holiday instead of holidays) which prevented holidays from
ever occuring