improve torrent handling
Tidy bootstrap.js