Support nonbasic gem and update cardlist.js.