Added date polyfills and reorganised other polyfills
Improved menus when displayed at edge of screen