add two headfootings + clean upp js