updated main menu script to behave as it does on purecss.io