MY GSOC 2013 work for simplecv-js