Remove unnecessary semicolons at the end of closing brackets