works with js generated filenames