removes trailing comma from requirejs config