Titans edge Houston in wild 38-36 game