Use `_.escapeRegExp` and export `Entry` in `entry.js`