Restructuring of html, css and javascript for off canvas navigation