generating footer in js