Replace CS with JS