Add more dependencies
Fix logic in index.html