Formatting and Javascript changes

re-formatted tables completely. Tesla cost now total