Tyreese John-Jules nets a hat-trick as Kilmarnock fought to a thrilling win over St Mirren that boosted their hopes of climbing out of the Scottish Premiership play-off spot.