WARNING: This page is about a different car, the 2016 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Install the battery box so that the side with the larger notch is pointed at the engine side.