add cros in js