Swipe out JS obj literal trailing commas and spaces