Javascript implementation of ChromaPop.