J.C. Penney cuts 350 jobs at headquarters