It turns out that not everyone appreciates being turned into an economic client state of the US. Nationalism is a direct reaction meant to (whether effective or not) reaffirm sovreignty.
I wonder why the blame is on the US or American companies, which offer better working conditions and pay, rather than Indian companies for not being competitive enough, or the expats for "defecting" from their home country.