Completed selector.js