I would expect a bad TPS to give you dead spots in your accelerations or a constant bad iddle. a surging idle is more likely a vacuum leak or bad iac. I would suspect that if you look right where the vacuum hose connects to the throttle body that you have a crack in the vacuum line.