move TagSelector initialization code to index.html