added function elements to js search