Add comma to the method js snippet