adding footer with content for javascript