JS patch and command config