Add JS error handling and fix spurious </ul> in beer list