File class for JS

The class will handle the DOM render of the files
General fixes