search functionality moved into an object literal

- IDs stored in dom, can be queried back.