Update HTML code in File Manager

Tidy up the HTML code in File Manager, update the DOCTYPE to the correct
definition, update the SCRIPT tags and misc. small updates.