Scott Sinclair scored a memorable goal against former employers Chelsea, which looked to have given Swansea a famous victory.