Split jQuery selectors into functions