initialize current files

Before changing javascript to query