migrated nav and footer to js