That Hail Mary wasn't a complete fluke. Jacksonville beat the Texans with that exact same play in November, 2010.
Mike Thomas said in the post-game interview that the play was designed that way, with the pass being batted down to a waiting player in the front of the end zone.
Props to Haley for seeing it and adding it to the playbook.