Adding menu item selection function

To run on page load - tested briefly on the demo page. More a POC for issue #5, feel free to make better :)