I think people are being too conservative. If the OP's flight is reasonably close to being on time, 2:40 leaves plenty of time for a LGA-JFK transfer by taxi, even with luggage. Forget the shuttle bus or any other option; take a taxi, which will cost about $30 with tip and take 20 (unlikely) to 45 (likely) minutes.