remove jquery dependency, reference avgrund code