better internal link recognition in hapax.js