Hide CATE while loading the page. Looks a bit prettier. Tidied up javascript functions.