Avoid trailing comma in array and object literals.

Signed-off-by: lixia <xautlx@hotmail.com>