added a external javascript file to handle the menu's behaviour