start of part4 javascript