Fixed homepage js errors, added text charts page