Goals from Madger Gomes, Tyreece John-Jules and an own goal by Charlie Barker ensured a 3-1 win away at The Valley for Doncaster Rovers.