js for files view