Use proper write_html_foot() function.
Add missing JavaScript library. Extrated from https://github.com/nconf/nconf/blob/master/include/js/jquery_plugins/jquery.nconf_head.js