created menu.js to simplify listViewTemplate.js and listViewData.js