js: reordering app.refresh() and fil.init()