register highlight.js languages in a DRY way