Refactoring mi.js, adding search by ID.