Add and update footer, split js