Preheat the oven to 350 degrees F (175 degrees C). Spray a 2-quart rectangular casserole dish with cooking spray. Puree 1 cup corn, margarine, and eggs together in a food processor or blender. Combine remaining corn with pepper Jack cheese, sour cream, cornmeal, green chiles, jalapeno, and salt in a large bowl. Add pureed corn and mix well. Pour mixture into the prepared dish; sprinkle Parmesan cheese on top. Bake in the preheated oven until puffy and golden, about 30 minutes. Broil for a few minutes until golden spots appear.