Fix small formatting inconsistencies.
Fix for IE 9 - make sure that files array exists before referencing it.