Hornets score razor-thin win over Eagles