Fixed inclusion of js in footer to match variables