mainjs and footerjs javascript update