An update and browserify friendly version of the original libccv (https://github.com/liuliu/ccv) javascript code