Javascript is now called from footer