Scrolling, added files

Scroll menu items into view if needed.
Added caret-position.js, popupMenu.js