index: don't add the global require .js hook in some cases