javascript fixed by including a footer