Starting to get t1 working with Javascript.