Fixed sort order of inherited elements
Added support for more file types (not yet tested) including js on client-side