Adds some (a lot) of js for manipulating the file view