removes trailing comma causing jshint errors