changed init

changed init of file list in js to make the function start on first load