Get rid of all misplaced commas
Replace misplaced commas around square brackets in ruby version as well.