JBIDE-15805 - Livereload does not work with HTML files without <body>

From now, the script is inserted at the end of the 'head' element (which is fine)
and if there's no such element, it is inserted at the end of the 'body' element.