Don't embed script if unnecessary

The script won't be inserted into the page if an extension/add-on allows the script to use Danbooru's JavaScript.