Generified recipe autcomplete js for initial elems