ornament octaves in js