You can use one of the free Samsung firmware update tools to download the Samsung SM-J500M stock ROM. There are numerous Samsung update tools capable of downloading the latest Samsung SM-J500M firmware file directly to your desktop so it can be flashed with the Odin flashing tool also made for Samsung.