remove jquery, pass elements instead of selectors