Convert lang/hr.js to UMD

Somehow missed this file in #1012