Migrated email to js file and added footer