Added menuPlacement configuration. Allowing users to provide a function for the menus placement, the menu is passed into the users function.