Updates for slides 3 and 4 of javascript class