The Republic of Ireland Under-21 international almost joined Derby County earlier this season, but his move fell through when Paul Jewell left the club.
West Ham scouts have watched the 20-year-old in action several times.
“It’s great news for me because I hope Jay will play this year as he did during the last third of the 2008 season,” said United boss Ian Foster.