Refactor ouicards.js to better use the exports variable