Javascript implementation of CIE94 distance