Fix js for invalid params for single commands