A plane had to make an emergency landing at Newark International Airport shortly after takeoff after sparks shot out from the aircraft following takeoff.