javascript c-r