js dfs