T1 prep - javascript