Added legal_terms and minor fixes in JS in footer