Aligns menu items using JavaScript