Adding initial work with Javascript to detect visual patterns with Javascript.