index aware of bootstrap/jquery