Refactored Angular on test page
Added directive for menus