Added footer and fixed some JS