Move counter/prev/next controls from index.html to menu.js